/*
包含n个接口请求函数的模块
 */
import ajax from './ajax'

const BASE_URL = '/api'

// 获取菜单列表
export const reqMenu = () => ajax(`${BASE_URL}/menu`)

// 获取学生频道列表
export const reqChannel = () => ajax(`${BASE_URL}/channel`);

// 获取特别链接列表
export const reqLinks = () => ajax(`${BASE_URL}/links`);

// 获取分校列表
export const reqSchools = () => ajax(`${BASE_URL}/schools`);

// 获取分校详情信息
export const reqSchoolsInfo = (id) => ajax(`${BASE_URL}/schoolsInfo`, {id}, 'POST');

// 获取校园文化列表
export const reqCulture = () => ajax(`${BASE_URL}/culture`);

// 获取信息公开列表
export const reqInfoOpen = () => ajax(`${BASE_URL}/infoOpen`);

// 获取科研通知列表
export const reqScience = () => ajax(`${BASE_URL}/science`);

// 获取招生计划列表
export const reqRecruit = () => ajax(`${BASE_URL}/recruit`);

// 获取预决算信息列表
export const reqBudget = (pageNum, pageSize) => ajax(`${BASE_URL}/budget`, {pageNum, pageSize}, 'POST');

// 获取通知公告信息列表
export const reqNotice = (pageNum, pageSize) => ajax(`${BASE_URL}/notice`, {pageNum, pageSize}, 'POST');

// 获取首页详情列表
export const reqMsite = () => ajax(`${BASE_URL}/msite`);
